package com.lovo.provider;

import org.apache.ibatis.jdbc.SQL;

public class BookProvider {

    public String getBooksById(int typeId){
        return new SQL(){
            {
                SELECT("*");
                FROM("t_book");
                INNER_JOIN("t_type on fk_type=type_id");
                WHERE("type_id =#{typeId}");
            }
        }.toString();
    }
}
